package pattern.structrual.decorator.v2;

/**
 * @Author Gavin
 * @date 2020.07.16 15:38
 */
public class Test {
    public static void main(String[] args) {
        ABattercake aBattercake;
        aBattercake = new BatterCake();
        aBattercake = new EggDecorator(aBattercake);
        aBattercake = new SausageDecorator(aBattercake);
        System.out.println(aBattercake.cost());
        System.out.println(aBattercake.desc());
    }
}
